Comments (6)
Hello! From your description it sounds like the same bug that was fixed in #157, which is in the latest release (0.6.5). If you're on a previous release, I would suggest upgrading and seeing if that fixes your problem.
from httpaf.
Well, I have the right version. I looked at the function and it seems there is still an error in it: the internal function [loop] is recursively called with [name] instead of [needle] which is an issue in the case where these values are not equal...
So it should be :
let replace t name value =
let rec loop t needle nv seen =
match t with
| [] ->
if not seen then raise Local else []
| (name,_ as nv')::t ->
if CI.equal needle name
then (
if seen
then loop t needle nv true
else nv::loop t needle nv true)
else nv'::loop t needle nv seen
in
try loop t name (name,value) false
with Local -> t
Sorry, I am still not extremely familiar with git so I will not do a PR as it will take me sooo much time.
from httpaf.
(Note: I actually thought to check for current issues but not the resolved ones before writing here. Neither did I check if I was using the latest release. Not a problem here, but I will keep this is mind for next time !).
from httpaf.
I think that you may have mistyped something. The code block in your previous comment is exactly the implementation that is in master.
from httpaf.
I see the problem. I thought that fix was in 0.6.5 but it's not. However, the bug appears to be fixed in master.
from httpaf.
The fix will be in the next release.
from httpaf.
Related Issues (20)
- Segfault in lwt_echo_post HOT 6
- Lack of backpressure when client code does not schedule read (httpaf-lwt-unix) HOT 4
- Infinite write loop with "Transfer-encoding: chunked" when client prematurely terminates HOT 8
- Chunked responses seem to be incorrect with streaming replies HOT 1
- Timeouts while responding under load HOT 15
- Server_connection.next_write_operation triggers "prompt: input shrunk!" HOT 13
- Reader is not waken up in case of immediate header flush with zero response body size HOT 8
- Example for decoding Json content
- Invalid HTTP headers cause server to return empty response HOT 3
- No error raised when timeout occurs reading response body HOT 1
- If multiple requests are received in one batched, the LWT backend blocks after the first. HOT 2
- 422 status is missing (Unprocessable_entity) HOT 1
- Set content-length automatically in Reqd.respond_with_string
- Parser resets to `Done` on failure HOT 1
- Latency under load
- http pipelining not working HOT 2
- Example in README does not work out of the box HOT 1
- Httpaf requrires OCaml >= 4.03, so `result` is not needed
- After `httpaf-lwt` and `httpaf-async` should there also be an `httpaf-eio` ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpaf.