Unverified Commit 0c153a97 authored by synaptic-cleft's avatar synaptic-cleft Committed by GitHub
Browse files

Merge pull request #169 from privacybydesign/test-lower-post-limit

Lower HTTP POST size limit in test
parents c717053f f5b1a324
Pipeline #53426 failed with stages
in 7 minutes and 30 seconds
......@@ -630,6 +630,11 @@ func TestPOSTSizeLimit(t *testing.T) {
StartRequestorServer(IrmaServerConfiguration)
defer StopRequestorServer()
server.PostSizeLimit = 1 << 10
defer func() {
server.PostSizeLimit = 10 << 20
}()
req, err := http.NewRequest(
http.MethodPost,
"http://localhost:48682/session/",
......
......@@ -73,11 +73,12 @@ const (
)
const (
PostSizeLimit = 10 << 20 // 10 MB
ReadTimeout = 5 * time.Second
WriteTimeout = 2 * ReadTimeout
ReadTimeout = 5 * time.Second
WriteTimeout = 2 * ReadTimeout
)
var PostSizeLimit int64 = 10 << 20 // 10 MB
// Remove this when dropping support for legacy pre-condiscon session requests
func (r *SessionResult) Legacy() *LegacySessionResult {
var disclosed []*irma.DisclosedAttribute
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment