Fix toString() for authority-less URIs
authorTudor Bosman <tudorb@fb.com>
Thu, 28 May 2015 20:59:56 +0000 (13:59 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 3 Jun 2015 16:48:04 +0000 (09:48 -0700)
commit5b39efc2656ebcd74b46775ad276c1ab06c3c54b
treee76424912ada58b07c54d82be0c10820dc4da688
parentfa2487779f809c0283f16dc4fc081e9384beefa6
Fix toString() for authority-less URIs

Summary: Uri("foo:bar").str() would incorrectly return "foo://bar"

Test Plan: test added

Reviewed By: savasp@fb.com, markisaa@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D2107530

Tasks: 7248055

Signature: t1:2107530:1432837143:c100f148c07b5b141cc036b1b39e6c8317e9bbd6
folly/Uri-inl.h
folly/Uri.cpp
folly/Uri.h
folly/test/UriTest.cpp