Permalink
Commits on Apr 30, 2016
  1. @brycekahle

    Merge pull request #93 from danbev/no-tranform-header

    Adding 'no-tranform' Cache-Control header to verify_not_cached.
    brycekahle committed Apr 30, 2016
Commits on Apr 24, 2016
  1. @danbev

    Adding 'no-tranform' Cache-Control header to verify_not_cached.

    Motivation:
    When running the InfoTest.test_basic against the https://github.com/sockjs/sockjs-node
    test_server I'm currently seeing the following failure:
    
    $ ./venv/bin/python sockjs-protocol.py InfoTest.test_basic
    F
    ======================================================================
    FAIL: test_basic (__main__.InfoTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "sockjs-protocol.py", line 269, in test_basic
        self.verify_not_cached(r)
      File "sockjs-protocol.py", line 126, in verify_not_cached
        'no-store, no-cache, must-revalidate, max-age=0')
    AssertionError: 'no-store, no-cache, no-transform, must-revalidate,
    max-age=0' != 'no-store, no-cache, must-revalidate, max-age=0'
    - no-store, no-cache, no-transform, must-revalidate, max-age=0
    ?                    --------------
    + no-store, no-cache, must-revalidate, max-age=0
    
    ----------------------------------------------------------------------
    Ran 1 test in 0.005s
    
    FAILED (failures=1)
    
    This headers was introduced in:
    sockjs/sockjs-node@7845866
    
    Modifications:
    Add the 'no-transform' Cache-Control header to verify_not_cheched.
    
    Result:
    The InfoTest.test_basic test passes successfully.
    danbev committed Apr 24, 2016
Commits on Aug 2, 2015
  1. @brycekahle
Commits on Dec 11, 2014
  1. @brycekahle

    Merge pull request #79 from danbev/cors-fixes

    Adding various fixes for CORS request/response handling
    brycekahle committed Dec 11, 2014
  2. @danbev

    Adding missing Origin argument to verify_cors method calls.

    Also removed 'Access-Control-Request-Method' from non-preflight request
    (simple CORS requests).
    danbev committed Dec 11, 2014
  3. @danbev
Commits on Dec 10, 2014
  1. @brycekahle

    Merge pull request #83 from flaviogrossi/patch-1

    update sockjs implementation links
    brycekahle committed Dec 10, 2014
  2. @flaviogrossi

    update sockjs implementation links

    The list provided in the README is out of sync wrt the list in the sockjs-client project.
    
    This is just a copy-paste from that README file.
    flaviogrossi committed Dec 10, 2014
  3. @brycekahle

    Merge pull request #70 from njoyce/pip-compatible

    Pip compatible
    brycekahle committed Dec 10, 2014
  4. Fix #81 CORS verify needs to follow spec

    Bryce Kahle committed Dec 10, 2014
  5. @brycekahle

    Merge pull request #62 from igm/patch-3

    Use 400 HTTP response instead of 500 for invalid requests
    brycekahle committed Dec 10, 2014
  6. @brycekahle

    Merge pull request #71 from ngocdaothanh/master

    Update links to related projects
    brycekahle committed Dec 10, 2014
  7. @brycekahle

    Merge pull request #55 from ngocdaothanh/patch-2

    Fix typo: "frame is send" -> "frame is sent"
    brycekahle committed Dec 10, 2014
  8. @brycekahle

    Merge pull request #54 from ngocdaothanh/patch-1

    Fix typo: fashin -> fashion
    brycekahle committed Dec 10, 2014
Commits on Dec 2, 2014
  1. @danbev

    Re-adding the else clause in the verify_cors method.

    Also updated the call to verify_cors to specify the origin that was sent
    in the request.
    danbev committed Dec 2, 2014
Commits on Apr 11, 2014
  1. @danbev

    Adding various fixes for CORS request/response handling

    There are a few tests that verify that a SockJS server responds with
    proper CORS HTTP response headers. Some of these test do not send
    requests with the appropriate CORS request headers which could mean that
    servers that follow the CORS specification [1] might fail the requests by
    not sending back CORS repsonse headers
    
    This PR attement to fix this issue.
    
    [1] http://www.w3.org/TR/cors/#resource-requests '6.1 Simple Cross-Origin Request, Actual Request, and Redirects'
    danbev committed Apr 10, 2014
Commits on Apr 10, 2013
  1. @ngocdaothanh
Commits on Mar 12, 2013
  1. @njoyce
  2. @njoyce
Commits on Feb 23, 2013
  1. @njoyce

    Lazy dependency checking for builds.

    Moved all internal files/directories to .build directory to keep the top
    level clean.
    
    Now that there is requirements.txt and requirements_dev.txt, there is no
    need for an optional virtualenv.
    njoyce committed Feb 23, 2013
Commits on Feb 14, 2013
  1. @majek

    Merge pull request #69 from fzzy/master

    Removed a space from XhrPolling content type test which caused the test to always fail.
    majek committed Feb 14, 2013
  2. @fzzy

    Removed a space from XhrPolling content type test which caused the te…

    …st to always fail.
    fzzy committed Feb 14, 2013
  3. @fzzy

    Removed a space from XhrPolling content type test which caused the te…

    …st to always fail.
    fzzy committed Feb 14, 2013
Commits on Feb 1, 2013
  1. @njoyce
  2. @njoyce

    Fix a typo.

    njoyce committed Feb 1, 2013
  3. @njoyce
  4. @njoyce

    Switch to using standard practices for installing python packages.

    Activate the virtualenv in the venv step. This makes it optional as we
    are possibly already in a dedicated virtualenv.
    njoyce committed Feb 1, 2013
Commits on Jan 9, 2013
  1. @majek

    #65 - also apply to dev

    majek committed Jan 9, 2013
  2. @majek
  3. @majek
Commits on Dec 27, 2012
  1. @rstoyanchev

    Introduce 0.25 sec delay for concurrent poll requests

    On Servlet containers, requests are processed in concurrent threads
    and it's not possible to guarantee the order of processing. This
    change introduces a 0.25 sec delay between requests when testing
    simultaneous polling requests to maximize the chance of the first
    request to be processed first.
    rstoyanchev committed Dec 27, 2012
  2. @rstoyanchev

    Ignore spaces when verifying the 'content-type' header

    Some Java server containers parse and re-assemble the 'content-type'
    header of the response, and it's not possible, nor should it matter
    whether the resulting header has spaces. This change ensures the
    content type is verified ignoring spaces.
    rstoyanchev committed Dec 27, 2012
Commits on Dec 19, 2012
  1. @majek
  2. @majek

    Merge pull request #63 from rstoyanchev/master

    Correct minor typos in comments
    majek committed Dec 19, 2012