Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Nov 10, 2010
  1. @etrepum

    edoc cleanup

    etrepum authored
  2. @etrepum

    Merge branch 'pu'

    etrepum authored
  3. @etrepum

    Merge branch 'master' into pu

    etrepum authored
  4. @jkoops @etrepum

    Fix for error in parsing particular incorrect singletons.

    jkoops authored etrepum committed
    When the HTML parser attempts to parse tags that should be
    singletons but are not, AND they have content, an exception
    occurs:
    
      1> mochiweb_html:parse("<html><input><input>x</input></input></html>").
      ** exception error: no case clause matching
            	            {[],[{<<"input">>,[],[<<"x">>]},{<<"input">>,[],[]}]}
           in function  mochiweb_html:destack/2
           in call from mochiweb_html:tree/2
           in call from mochiweb_html:parse_tokens/1
    
    This patch provides a fix.
Commits on Nov 9, 2010
  1. @doubleyou
Commits on Nov 8, 2010
  1. @fdmanana
  2. @fdmanana

    Added mochiweb_request:accept_content_type/1 function.

    fdmanana authored
    This function allows a caller to know if a request accepts a given media type.
    Examples:
    
          1) For a missing "Accept" header:
             accepts_content_type("application/json") -> true
    
          2) For an "Accept" header with value "text/plain, application/*":
             accepts_content_type("application/json") -> true
    
          3) For an "Accept" header with value "text/plain, */*; q=0.0":
             accepts_content_type("application/json") -> false
    
          4) For an "Accept" header with value "text/plain; q=0.5, */*; q=0.1":
             accepts_content_type("application/json") -> true
    
          5) For an "Accept" header with value "text/*; q=0.0, */*":
             accepts_content_type("text/plain") -> false
Commits on Nov 2, 2010
  1. @doubleyou

    {active, false} -> {active, once}

    doubleyou authored
    Small refactoring
Commits on Nov 1, 2010
  1. run userdefined profile_fun for accept timing, handle state upgrade, …

    Emad El-Haraty authored
    …document and test.
  2. this is going to be a lot of data, so we need to make sure our networ…

    Emad El-Haraty authored
    …k and scribe can handle this
Commits on Oct 20, 2010
  1. @etrepum

    Merge branch 'master' into pu

    etrepum authored
  2. @jkoops @etrepum

    Fix for parsing broken processing instructions.

    jkoops authored etrepum committed
    Some HTML contains broken processing instructions, such as this one
    encountered in the wild: `<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />`.
    
    The parser crashes on this since it only accepts `?>` (or end-of-file) as
    the end of a processing instruction. This patch fixes it by also
    allowing `>` or `/>` to end a processing instruction.
Commits on Oct 18, 2010
  1. Lots of work on using rebar templates for creating new projects. New …

    David Reid authored
    …projects will use rebar and automatically include mochiweb as a dep.
Commits on Oct 13, 2010
  1. Use rebar to build and test mochiweb

    David Reid authored
  2. @etrepum

    Merge branch 'pu'

    etrepum authored
  3. @jkoops @etrepum

    Fix for bug when parsing attributes without a name

    jkoops authored etrepum committed
    There is a bug when parsing HTML tags with attributes wihout a name --
    either because the author forgot to include the attribute's name (it
    happens!) or because they forgot the whitespace between the tagname
    and the attribute-name:
    
    <body ="black">
    or
    <liclass="first">
    
    Parsing this would cause an exit with a function-clause error.
    
    This patch fixes it in such a way that at least the parse succeeds,
    although the parsed attribute-names and values are probably not what was
    intended by the HTML author.
Commits on Oct 12, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
  2. @etrepum

    fix vsn in pu

    etrepum authored
  3. @etrepum

    Merge branch 'pu'

    etrepum authored
  4. @etrepum
  5. @etrepum

    tag 1.4.0

    etrepum authored
  6. @etrepum

    Merge branch 'master' into pu

    etrepum authored
  7. @etrepum

    Fixes a bug when parsing an unquoted attribute value starting with a …

    unknown authored etrepum committed
    …slash.
    
    For example, parsing <img src=/images/icon.png> would exit with a
    ** exception error: bad argument
         in function  iolist_to_binary/1
                 called as iolist_to_binary({data,"/",false})
    
    The error was introduced by commit d064e45.
  8. @etrepum
Commits on Oct 8, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
  2. @etrepum
  3. @etrepum

    This is a fix for mochiweb_html:parse/1 getting in an infinite loop w…

    unknown authored etrepum committed
    …hen encountering some sorts of invalid HTML.
Commits on Sep 29, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
  2. @lemenkov @etrepum

    Fix ambiguity when calling of overridden auto-imported BIF error/1

    lemenkov authored etrepum committed
    on R14B.
    
    See also compilation log:
    
    http://koji.fedoraproject.org/koji/getfile?taskID=2496796&name=build.log
    
    Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Commits on Sep 21, 2010
  1. @etrepum
Commits on Sep 20, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
  2. @lemenkov @etrepum

    Secure fdsrv invocation.

    lemenkov authored etrepum committed
    In most setups seen by me so far fd_server isn't available so in
    this rare sutuation when mochiweb will call fdsrv it will die.
    This patch prevents it from sudden death.
    
    Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Commits on Sep 19, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
  2. @etrepum

    support get_modules request in socket_server, since we have a dynamic…

    authored etrepum committed
    … modules request (needed by release_manager)
Commits on Sep 17, 2010
  1. @etrepum

    Merge branch 'pu'

    etrepum authored
Something went wrong with that request. Please try again.