Conversation
|
@BrendanBenshoof I think we want both: mux.Handle("/"+path+"/", handler)
mux.Handle("/"+path, handler)not all browsers redirect correctly (curl) |
|
Ah, ok! great then. |
|
I think this needs to be in a sharness test to makes sure it doesn't regress. @BrendanBenshoof take a look at |
93c3e73 to
feaf10d
Compare
|
@jbenet Test is added |
feaf10d to
7fc68c4
Compare
There was a problem hiding this comment.
This will need updating whenever a new version of WebUI is pushed
|
I am getting different behavior on my node versus the Travis CI (see #840 ) and I relaxed the test to allow for it. I currently test: I should also test: |
6181206 to
1416f85
Compare
expected
Outdated
There was a problem hiding this comment.
these files shouldnt be here i dont think
|
remove weird files in root and LGTM |
test/sharness/t0110-gateway.sh
Outdated
There was a problem hiding this comment.
Hrm... now that i think about it, lets work on breaking this up into a few smaller test. do each curl in one, make sure it succeeds, do the text comparisons in their own functions.
There was a problem hiding this comment.
How about 2 tests:
Files actually download and
Codes match expected values
There was a problem hiding this comment.
maybe also divide by webui and webui/ (may be easier to read/edit as two semi identical blocks)
test/sharness/t0110-gateway.sh
Outdated
|
Ok, I broke into two test that share some state. |
|
LGTM! |
hopefully I finally got this right
bug #812