Skip to content

Commit 57762a2

Browse files
committed
fixed various bugs (see SF tracker)
1 parent 5b26a62 commit 57762a2

19 files changed

+97
-28
lines changed

Foundation/Foundation_vs71.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
Name="VCCustomBuildTool"/>
165165
<Tool
166166
Name="VCLibrarianTool"
167+
AdditionalDependencies="ws2_32.lib"
167168
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"/>
168169
<Tool
169170
Name="VCMIDLTool"/>
@@ -217,6 +218,7 @@
217218
Name="VCCustomBuildTool"/>
218219
<Tool
219220
Name="VCLibrarianTool"
221+
AdditionalDependencies="ws2_32.lib"
220222
OutputFile="..\lib\Poco$(ProjectName)mt.lib"/>
221223
<Tool
222224
Name="VCMIDLTool"/>

Foundation/Foundation_vs80.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
/>
257257
<Tool
258258
Name="VCLibrarianTool"
259+
AdditionalDependencies="ws2_32.lib"
259260
OutputFile="..\lib\Poco$(ProjectName)mt.lib"
260261
/>
261262
<Tool
@@ -327,6 +328,7 @@
327328
/>
328329
<Tool
329330
Name="VCLibrarianTool"
331+
AdditionalDependencies="ws2_32.lib"
330332
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"
331333
/>
332334
<Tool

Foundation/Foundation_vs90.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@
249249
/>
250250
<Tool
251251
Name="VCLibrarianTool"
252+
AdditionalDependencies="ws2_32.lib"
252253
OutputFile="..\lib\Poco$(ProjectName)mt.lib"
253254
/>
254255
<Tool
@@ -318,6 +319,7 @@
318319
/>
319320
<Tool
320321
Name="VCLibrarianTool"
322+
AdditionalDependencies="ws2_32.lib"
321323
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"
322324
/>
323325
<Tool

Foundation/include/Poco/LinearHashTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class LinearHashTable
8989
typedef typename Bucket::iterator BucketIterator;
9090
typedef typename BucketVec::iterator BucketVecIterator;
9191

92-
class ConstIterator
92+
class ConstIterator: public std::iterator<std::forward_iterator_tag, Value>
9393
{
9494
public:
9595
ConstIterator()

Foundation/src/AsyncChannel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ void AsyncChannel::close()
115115
{
116116
while (!_queue.empty()) Thread::sleep(100);
117117

118-
do { _queue.wakeUpAll(); }
118+
do
119+
{
120+
_queue.wakeUpAll();
121+
}
119122
while (!_thread.tryJoin(100));
120123
}
121124
}

Net/Net_vs71.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
Name="VCCustomBuildTool"/>
167167
<Tool
168168
Name="VCLibrarianTool"
169+
AdditionalDependencies="ws2_32.lib"
169170
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"/>
170171
<Tool
171172
Name="VCMIDLTool"/>
@@ -219,6 +220,7 @@
219220
Name="VCCustomBuildTool"/>
220221
<Tool
221222
Name="VCLibrarianTool"
223+
AdditionalDependencies="ws2_32.lib"
222224
OutputFile="..\lib\Poco$(ProjectName)mt.lib"/>
223225
<Tool
224226
Name="VCMIDLTool"/>

Net/Net_vs80.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
/>
259259
<Tool
260260
Name="VCLibrarianTool"
261+
AdditionalDependencies="ws2_32.lib"
261262
OutputFile="..\lib\Poco$(ProjectName)mt.lib"
262263
/>
263264
<Tool
@@ -329,6 +330,7 @@
329330
/>
330331
<Tool
331332
Name="VCLibrarianTool"
333+
AdditionalDependencies="ws2_32.lib"
332334
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"
333335
/>
334336
<Tool

Net/Net_vs90.vcproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@
249249
/>
250250
<Tool
251251
Name="VCLibrarianTool"
252+
AdditionalDependencies="ws2_32.lib"
252253
OutputFile="..\lib\Poco$(ProjectName)mt.lib"
253254
/>
254255
<Tool
@@ -318,6 +319,7 @@
318319
/>
319320
<Tool
320321
Name="VCLibrarianTool"
322+
AdditionalDependencies="ws2_32.lib"
321323
OutputFile="..\lib\Poco$(ProjectName)mtd.lib"
322324
/>
323325
<Tool

Net/include/Poco/Net/HTTPCookie.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// HTTPCookie.h
33
//
4-
// $Id: //poco/svn/Net/include/Poco/Net/HTTPCookie.h#2 $
4+
// $Id: //poco/1.3/Net/include/Poco/Net/HTTPCookie.h#1 $
55
//
66
// Library: Net
77
// Package: HTTP
@@ -157,6 +157,12 @@ class Net_API HTTPCookie
157157
/// Returns the maximum age in seconds for
158158
/// the cookie.
159159

160+
void setHttpOnly(bool flag = true);
161+
/// Sets the HttpOnly flag for the cookie.
162+
163+
bool getHttpOnly() const;
164+
/// Returns true iff the cookie's HttpOnly flag is set.
165+
160166
std::string toString() const;
161167
/// Returns a string representation of the cookie,
162168
/// suitable for use in a Set-Cookie header.
@@ -170,6 +176,7 @@ class Net_API HTTPCookie
170176
std::string _path;
171177
bool _secure;
172178
int _maxAge;
179+
bool _httpOnly;
173180
};
174181

175182

@@ -224,6 +231,12 @@ inline int HTTPCookie::getMaxAge() const
224231
}
225232

226233

234+
inline bool HTTPCookie::getHttpOnly() const
235+
{
236+
return _httpOnly;
237+
}
238+
239+
227240
} } // namespace Poco::Net
228241

229242

Net/src/HTMLForm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ void HTMLForm::addPart(const std::string& name, PartSource* pSource)
124124

125125
void HTMLForm::load(const HTTPRequest& request, std::istream& requestBody, PartHandler& handler)
126126
{
127+
clear();
127128
if (request.getMethod() == HTTPRequest::HTTP_POST)
128129
{
129130
std::string mediaType;

0 commit comments

Comments
 (0)