Commit f5b1a324 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

test: lower HTTP POST size limit in test

parent c717053f
......@@ -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