Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

martian: drop custom head response implementation #872

Open
Choraden opened this issue Jul 30, 2024 · 1 comment
Open

martian: drop custom head response implementation #872

Choraden opened this issue Jul 30, 2024 · 1 comment
Assignees
Milestone

Comments

@Choraden
Copy link
Contributor

Now that golang/go#62015 is merged, we no longer need our custom head response implementation.
Bump the go version once released and drop that function.
It might be worth to add a test on that, if we don't have that already.

@Choraden Choraden added this to the v1.4 milestone Jul 30, 2024
@mmatczuk mmatczuk self-assigned this Sep 9, 2024
@mmatczuk
Copy link
Contributor

mmatczuk commented Sep 9, 2024

It looks like some things changed but the issue persists.
Below output of a test I did without the patch.

$ curl -x localhost:3128 -v --head http://www.google.com
* Host localhost:3128 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:3128...
* Connected to localhost (::1) port 3128
> HEAD http://www.google.com/ HTTP/1.1
> Host: www.google.com
> User-Agent: curl/8.7.1
> Accept: */*
> Proxy-Connection: Keep-Alive
> 
* Request completely sent off
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< Cache-Control: private
Cache-Control: private
< Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-0fVfAdBssnogTXqR8j3dpg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-0fVfAdBssnogTXqR8j3dpg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
< Content-Type: text/html; charset=ISO-8859-1
Content-Type: text/html; charset=ISO-8859-1
< Date: Mon, 09 Sep 2024 13:21:31 GMT
Date: Mon, 09 Sep 2024 13:21:31 GMT
< Expires: Mon, 09 Sep 2024 13:21:31 GMT
Expires: Mon, 09 Sep 2024 13:21:31 GMT
< Server: gws
Server: gws
< Set-Cookie: AEC=AVYB7cq8XHwTgXJK8GCBhyspzaxy6v6a-D4odbgY8bpNiVTmxnSwlJW2Fso; expires=Sat, 08-Mar-2025 13:21:31 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
Set-Cookie: AEC=AVYB7cq8XHwTgXJK8GCBhyspzaxy6v6a-D4odbgY8bpNiVTmxnSwlJW2Fso; expires=Sat, 08-Mar-2025 13:21:31 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 0
X-Xss-Protection: 0
< 

* chunk hex-length char not a hex digit: 0xd
* Illegal or missing hexadecimal sequence in chunked-encoding
* Closing connection

@mmatczuk mmatczuk modified the milestones: v1.4, v1.x Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants