Re: [racket-users] web-server response/output contract errors

2016-10-20 Thread Craig Allen
Gah, I knew it'd be something simple. Thanks for that, I assumed it'd return void. Craig -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr

Re: [racket-users] web-server response/output contract errors

2016-10-20 Thread Jay McCarthy
write-bytes returns a number http://docs.racket-lang.org/reference/Byte_and_String_Output.html?q=write-bytes#%28def._%28%28quote._~23~25kernel%29._write-bytes%29%29 and response/output expects the function to return void? http://docs.racket-lang.org/web-server/http.html?q=response%2Foutput#%28de

[racket-users] web-server response/output contract errors

2016-10-20 Thread Craig Allen
Hi guys, I'm trying to serve a file using a restful API via dispatcher. The file is being served but I'm also getting some funky contract errors that I don't really understand. The function is (define (generate-zip-response zip-path) (let* ([size-bs (string->bytes/utf-8 (number->strin