benoitc / benoitc/http-parser

Parsing string with multiple HTTP requests

Open
#65 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
345
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Could you please clarify what the behaviour is when execute() gets passed a string with two (or even more) HTTP requests directly behind each other (seperated by "\r\n\r\n").
In my example

```
pars.get_headers()["HOST"]
```

returned the Host field of **both** requests seperated with a comma (although the hosts were the same).

Interestingly

```
pars.get_url()
```

returned just the URL of the **second** request.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.