~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to test/HttpResponseTest.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
 
495
495
  httpHeader->clearField();
496
496
 
 
497
  // Test for percent-encode
 
498
  httpHeader->put("Location", "http://example.org/white space#aria2");
 
499
  httpResponse.processRedirect();
 
500
  CPPUNIT_ASSERT_EQUAL(std::string("http://example.org/white%20space"),
 
501
                       request->getCurrentUri());
 
502
 
 
503
  httpHeader->clearField();
 
504
 
497
505
  // Give unsupported scheme
498
506
  httpHeader->put("Location", "unsupported://mirror/aria2-1.0.0.tar.bz2");
499
507
  try {