[go-nuts] How to parse IDP extension information in a CRL using Go

2025-04-04 Thread 'Qianxin Cheng' via golang-nuts
Developer, I wrote some code in Go to parse the IDP extension information in a CRL, but I'm encountering an error while parsing the DistributionPoint. I've tried multiple times, but I can't get it to work. Can you help me figure out what is wrong with this code? package main import ( "crypto/x5

[go-nuts] Financial support for golangci-lint

2025-04-04 Thread Mitar
Hi! golangci-lint is probably to-go project Go projects use for their advanced linting needs. Despite that, it seems pretty sad to see that it gets only $100 in donations per month to sustain its development and maintenance. [1] Does anyone have any suggestions how we could all together improve th

[go-nuts] Re: x/text/unicode/bidi - how to draw attention to two bugs?

2025-04-04 Thread Jason E. Aten
Hi Patrick, Not to discourage you from pressing for fixes, but 9 times out of 10 I have to just end up forking open source projects to fix bugs and then just use my own fork. This is the fast path. Perhaps you've already intuited this. Just to let you know you aren't alone in the experience. O

[go-nuts] Unexpected 301 Redirect with http.StripPrefix + nested http.ServeMux in Go 1.24.1?

2025-04-04 Thread 'Alexander Ertli' via golang-nuts
Hello, I'm encountering unexpected behavior with net/http routing in Go 1.24.1 (amd64, ubuntu linux) when using http.StripPrefix to delegate to a nested http.ServeMux which uses the Go 1.22+ METHOD /path routing syntax. Instead of the nested ServeMux executing its registered handlers for the

[go-nuts] Is there a way to capture the error by "http.MaxBytesReader"?

2025-04-04 Thread Zhaoxun Yan
It used to send an error response to the client with code 405, with log info like this: reverseproxy.go:476: http: proxy error: readfrom tcp 127.0.0.1:35064->127.0.0.1:8006: http: request body too large but I want to analyze the header and capture "X-Real-IP" of the client so as it happens con