swordapp/swordappv2-php-library — pull request #1 by bensteinberg (2013-03-05 14:21:27+00:00)
Title: Update swordappclient.php to solve first-letter truncation of uploaded package filenames

Hi - I've added "attachment;" to Content-Disposition in three places in swordappclient.php. In the deposit() function, this solves the problem of the package filename having its first letter missing (mentioned in http://sourceforge.net/mailarchive/message.php?msg_id=29147892, for example). I haven't tested the other two places where I've added it.
It's possible this is really a bug in the SWORD server code: the SWORD 2.0 Profile does not require "attachment;" for a METSDSpaceSIP package (although the example at http://swordapp.github.com/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_binary includes it). Fixing it here works, though, and the other client code I've looked at includes "attachment;".
This is my first use of GitHub and my first pull request; if there's a better way to submit this, please let me know. Thanks!