diff options
| author | Skyler Kaufman <skyler@google.com> | 2011-01-21 16:11:46 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-21 16:11:46 -0800 |
| commit | 641028359a5bd3e3e1b5e772c2d6084c4df55a98 (patch) | |
| tree | 2fe4209c073b57f91d8a8cae37e1fd88d0471c1a /pdk | |
| parent | 2d93907d2e81d3e781d71b50d6f4ec2e57ccb1c5 (diff) | |
| parent | 8215de789a5678f67bc5fc4af062b151263eabdd (diff) | |
| download | android_development-641028359a5bd3e3e1b5e772c2d6084c4df55a98.tar.gz android_development-641028359a5bd3e3e1b5e772c2d6084c4df55a98.tar.bz2 android_development-641028359a5bd3e3e1b5e772c2d6084c4df55a98.zip | |
am 8215de78: am e2a6258c: Merge "A tiny http server to test source.android.com changes"
* commit '8215de789a5678f67bc5fc4af062b151263eabdd':
A tiny http server to test source.android.com changes
Diffstat (limited to 'pdk')
| -rw-r--r-- | pdk/micro-httpd.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pdk/micro-httpd.py b/pdk/micro-httpd.py new file mode 100644 index 000000000..96e400088 --- /dev/null +++ b/pdk/micro-httpd.py @@ -0,0 +1,19 @@ +# Copyright (C) 2010 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import SimpleHTTPServer, SocketServer, os +PORT = int(os.environ.get('HTTP_PORT', 8080)) +Handler = SimpleHTTPServer.SimpleHTTPRequestHandler +httpd = SocketServer.TCPServer(("", PORT), Handler) +httpd.serve_forever() |
