serverside 0.4.5.2 → 0.4.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/serverside/http/parsing.rb +3 -3
  3. metadata +12 -12
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'fileutils'
6
6
  include FileUtils
7
7
 
8
8
  NAME = "serverside"
9
- VERS = "0.4.5.2"
9
+ VERS = "0.4.5.3"
10
10
  CLEAN.include ['**/.*.sw?', 'pkg/*', '.config', 'doc/*', 'coverage/*']
11
11
  RDOC_OPTS = ['--quiet', '--title', "ServerSide: a Fast Ruby Web Framework",
12
12
  "--opname", "index.html",
@@ -93,10 +93,10 @@ module ServerSide::HTTP
93
93
  # Parses the request body.
94
94
  def parse_body(body)
95
95
  @body = body
96
- case content_type
97
- when MULTIPART_FORM_DATA_RE:
96
+
97
+ if @headers[:content_type] =~ MULTIPART_FORM_DATA_RE
98
98
  parse_multi_part(body, BOUNDARY_FIX + $1) # body.dup so we keep the original request body?
99
- when FORM_URL_ENCODED:
99
+ elsif content_type == FORM_URL_ENCODED
100
100
  parse_form_url_encoded(body)
101
101
  end
102
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5.2
4
+ version: 0.4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-12 00:00:00 +02:00
12
+ date: 2008-08-02 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,33 +53,33 @@ files:
53
53
  - README
54
54
  - Rakefile
55
55
  - bin/serverside
56
- - spec/daemon_spec.rb
57
56
  - spec/core_ext_spec.rb
58
- - spec/template_spec.rb
57
+ - spec/daemon_spec.rb
59
58
  - spec/http_spec.rb
60
- - spec/request_spec.rb
61
59
  - spec/js_spec.rb
60
+ - spec/request_spec.rb
62
61
  - spec/response_spec.rb
63
62
  - spec/spec_helper.rb
63
+ - spec/template_spec.rb
64
64
  - spec/xml_spec.rb
65
65
  - lib/serverside
66
+ - lib/serverside/cluster.rb
67
+ - lib/serverside/core_ext.rb
68
+ - lib/serverside/daemon.rb
66
69
  - lib/serverside/http
67
70
  - lib/serverside/http/caching.rb
68
71
  - lib/serverside/http/const.rb
69
72
  - lib/serverside/http/error.rb
70
73
  - lib/serverside/http/parsing.rb
74
+ - lib/serverside/http/request.rb
71
75
  - lib/serverside/http/response.rb
72
76
  - lib/serverside/http/server.rb
73
77
  - lib/serverside/http/static.rb
74
- - lib/serverside/http/request.rb
75
78
  - lib/serverside/http.rb
76
- - lib/serverside/xml.rb
77
- - lib/serverside/cluster.rb
79
+ - lib/serverside/js.rb
78
80
  - lib/serverside/log.rb
79
- - lib/serverside/daemon.rb
80
- - lib/serverside/core_ext.rb
81
81
  - lib/serverside/template.rb
82
- - lib/serverside/js.rb
82
+ - lib/serverside/xml.rb
83
83
  - lib/serverside.rb
84
84
  has_rdoc: true
85
85
  homepage: http://code.google.com/p/serverside/
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  requirements: []
116
116
 
117
117
  rubyforge_project:
118
- rubygems_version: 1.0.1
118
+ rubygems_version: 1.1.1
119
119
  signing_key:
120
120
  specification_version: 2
121
121
  summary: Fast Ruby HTTP Server.