Changeset 3 in code for trunk


Ignore:
Timestamp:
Oct 16, 2016, 9:37:09 AM (9 years ago)
Author:
asciimoo
Message:

[fix] handle missing trailing slash in baseurl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r2 r3  
    453453                u2.Scheme = u1.Scheme
    454454        }
    455         if u2.Host == "" {
     455        if u2.Host == "" && u1.Path != "" {
    456456                u2.Host = u1.Host
    457457                if len(u2.Path) == 0 || u2.Path[0] != '/' {
Note: See TracChangeset for help on using the changeset viewer.