Changeset 7 in code


Ignore:
Timestamp:
Oct 21, 2016, 7:01:49 PM (9 years ago)
Author:
asciimoo
Message:

[fix] support all kind of http redirections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r5 r7  
    177177        if resp.StatusCode() != 200 {
    178178                switch resp.StatusCode() {
    179                 case 301, 302:
     179                case 301, 302, 303, 307, 308:
    180180                        loc := resp.Header.Peek("Location")
    181181                        if loc != nil {
Note: See TracChangeset for help on using the changeset viewer.