[GH-ISSUE #13] 200 response for 301 / 302 #4

Closed
opened 2026-03-01 14:35:55 +03:00 by kerem · 1 comment
Owner

Originally created by @pschoenmakers on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/alpkeskin/rota/issues/13

Originally assigned to: @alpkeskin on GitHub.

I'm getting a 200 response when requesting url's that return a 301 or 302 header.

Request with rota

 curl -x http://rota:9080 -i --max-redirs 0 http://httpbin.org/status/302

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Length: 304
Content-Type: application/json
Date: Mon, 17 Mar 2025 13:22:16 GMT
Server: gunicorn/19.9.0

Getting this without rota:

 curl -i --max-redirs 0 http://httpbin.org/status/302

HTTP/1.1 302 FOUND
Date: Mon, 17 Mar 2025 13:22:41 GMT
Content-Length: 0
Connection: keep-alive
Server: gunicorn/19.9.0
location: /redirect/1
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

Would it be possible to return the header of the source?

Originally created by @pschoenmakers on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/alpkeskin/rota/issues/13 Originally assigned to: @alpkeskin on GitHub. I'm getting a 200 response when requesting url's that return a 301 or 302 header. Request with rota ``` curl -x http://rota:9080 -i --max-redirs 0 http://httpbin.org/status/302 HTTP/1.1 200 OK Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Content-Length: 304 Content-Type: application/json Date: Mon, 17 Mar 2025 13:22:16 GMT Server: gunicorn/19.9.0 ``` Getting this without rota: ``` curl -i --max-redirs 0 http://httpbin.org/status/302 HTTP/1.1 302 FOUND Date: Mon, 17 Mar 2025 13:22:41 GMT Content-Length: 0 Connection: keep-alive Server: gunicorn/19.9.0 location: /redirect/1 Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true ``` Would it be possible to return the header of the source?
kerem 2026-03-01 14:35:55 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@alpkeskin commented on GitHub (Apr 7, 2025):

Thanks to @seudnuredin , this bug was fixed. 🚀

<!-- gh-comment-id:2783295251 --> @alpkeskin commented on GitHub (Apr 7, 2025): Thanks to @seudnuredin , this bug was fixed. 🚀
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rota#4
No description provided.