Skip to content

Response template doesn't get returned on successful upload #12

Closed
@etherwvlf

Description

@etherwvlf

Everything fine and dandy. Building with xcaddy and go versions:

v0.3.3 h1:0TdKXGl1u6Fc0Duc4qG0zu/aMyU/cTYgoXrvTkMeSnY=
go version go1.20.4 linux/amd64

I think the response template doesn't seem to be returned on successful upload when compared to the previous build.
This is now:

user@654567547:/test$ curl -kv --form [email protected] http://localhost:9000/upload-template.htm
*   Trying 127.0.0.1:9000...
* Connected to localhost (127.0.0.1) port 9000 (#0)
> POST /upload-template.htm HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.88.1
> Accept: */*
> Content-Length: 19963043
> Content-Type: multipart/form-data; boundary=------------------------d84106d9eac5a586
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 201 Created
< Server: Caddy
< Date: Sat, 06 May 2023 21:28:04 GMT
< Content-Length: 0
< 
* Connection #0 to host localhost left intact

This was before:

user@654567547:/test$ curl -kv --form [email protected] http://localhost:9000/upload-template.htm
*   Trying 127.0.0.1:9000...
* Connected to localhost (127.0.0.1) port 9000 (#0)
> POST /upload-template.htm HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.87.0
> Accept: */*
> Content-Length: 6607691
> Content-Type: multipart/form-data; boundary=------------------------15c7d37773cc1a35
> Expect: 100-continue
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 197
< Content-Type: text/plain; charset=utf-8
< Server: Caddy
< Date: Wed, 22 Feb 2023 09:58:58 GMT
< 


http.request.uri.path: /upload-resp-template.txt

http.request.uuid c92559ee-4533-417a-831e-825627512927
http.request.host localhost

http.upload.filename: chm.pdf
http.upload.filesize: 6607499

* Connection #0 to host localhost left intact

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions