diff options
author | Colin Walters <walters@verbum.org> | 2017-01-08 20:44:20 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-01-19 10:47:15 +0000 |
commit | 56891f9d485ee064be3f8d40f64243e87b395da1 (patch) | |
tree | 99ed76e5cd1b704aadd85c24ae459be58dd745ee /tests/test-pull-c.c | |
parent | e6952de3d67f8b9896cb15ffa31f50b4e0758714 (diff) | |
download | ostree-56891f9d485ee064be3f8d40f64243e87b395da1.tar.gz |
tests: Don't inject newline in URL
It turns out libsoup strips all whitespace even *inside* a URL. We could do that
for libcurl too but...really, people shouldn't do that. In this test we were
adding the trailing newline into the URL. If someone complains who is using the
libcurl code we can deal with it then.
Closes: #651
Approved by: giuseppe
Diffstat (limited to 'tests/test-pull-c.c')
-rw-r--r-- | tests/test-pull-c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-pull-c.c b/tests/test-pull-c.c index 43d5d61d..c2d64dcc 100644 --- a/tests/test-pull-c.c +++ b/tests/test-pull-c.c @@ -49,6 +49,8 @@ test_data_init (TestData *td) if (!g_file_get_contents ("httpd-address", &http_address, NULL, error)) goto out; + g_strstrip (http_address); + repo_url = g_strconcat (http_address, "/ostree/gnomerepo", NULL); { g_autoptr(GVariantBuilder) builder = g_variant_builder_new (G_VARIANT_TYPE ("a{sv}")); |